package com.leetroll.media.controller;

import com.leetroll.media.job.Job_Config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;


@RestController
@RequestMapping("/config")
@Slf4j
public class ConfigController {

    private final Job_Config jobConfig;

    @Autowired
    public ConfigController(Job_Config jobConfig) {
        this.jobConfig = jobConfig;
    }

    @GetMapping("/init-effects")
    public void initEffects() throws IOException {
//        configJob.initBgEffects();
        jobConfig.initFramesEffect();
    }

}
